import request from '@/utils/request'

// 任务下发
export function sendsTask(data) {
  return request({
    url: '/center/sendsTaskV2/',
    method: 'post',
    data:data
  })
}


// 查询库存列表
export function inventoryDatas(query) {
  return request({
    url: '/center/inventory/list',
    method: 'get',
    params: query
  })
}

// 查询库存列表
export function propertyDatas(query) {
  return request({
    url: '/center/property/list',
    method: 'get',
    params: query
  })
}

// 判断物品是否车辆
export function checkPno(pno) {
  return request({
    url: '/center/queryPno/'+pno,
    method: 'get'
  })
}
//获取车位地域
export function getRegion(pno) {
  return request({
    url: '/center/queryPnoByRegion/'+pno,
    method: 'get'
  })
}

export function getUploadOss(data) {
  return request({
    url: '/center/uploadPhotoBase64',
    method: 'post',
    data:data
  })
}

export function getCarrierUser(){
	return request({
	  url: '/center/getCarrierUser',
	  method: 'get'
	})
}

export function getIndexSchedule(){
  return request({
    url: '/center/indexSchedule',
    method: 'get'
  })
}
